﻿using System;
using ElectronicCommerce.Framework.Collections;

namespace ElectronicCommerce.Framework.Utility
{
    /// <summary>
    /// 文件合并失败原因。
    /// </summary>
    public class FileMergeFailReason : IKeyedObject
    {
        #region [ Fields ]

        private string fileName;
        private string mergeFailReason;
        private Exception innerException;

        #endregion

        #region [ Properties ]

        /// <summary>
        /// 键值。
        /// </summary>
        public string Key
        {
            get { return this.fileName; }
        }

        /// <summary>
        /// 合并失败的文件名。
        /// </summary>
        public string FileName
        {
            get { return this.fileName; }
            set { this.fileName = value; }
        }

        /// <summary>
        /// 合并失败原因。
        /// </summary>
        public string MergeFailReason
        {
            get { return this.mergeFailReason; }
            set { this.mergeFailReason = value; }
        }

        /// <summary>
        /// 内部异常。
        /// </summary>
        public Exception InnerException
        {
            get { return this.innerException; }
            set { this.innerException = value; }
        }

        #endregion
    }
}
